<?php

/**
 * ActiveRecord class
 *
 * @author Julot
 * @since Thursday, April 12, 2012. 01:39 PM
 */
class ActiveRecord extends CActiveRecord {

	public function behaviors() {
		$behaviors = array(
			'CTimestampBehavior'=>array(
				'class'=>'zii.behaviors.CTimestampBehavior',
				'createAttribute'=>'createdAt',
				'updateAttribute'=>'updatedAt',
				'setUpdateOnCreate'=>true,
				'timestampExpression'=>"date('Y-m-d H:i:s')",
			),
			'dataBehavior'=>array(
				'class'=>'ext.behaviors.DynamicDataProviderBehavior',
			),
			'autoComplete'=>array(
				'class'=>'ext.behaviors.AutoCompleteBehavior',
			),
		);
		return $behaviors;
	}

}

